<div class="manage-content">
    <div class="padding">
        <div class="toolbar f14 mt25 clearfix">
            <div class="toolbar-tab fl">
                <ul>
                    <li>
                        <a href="#/mass-message">新建群发消息</a>
                    </li>
                    <li class="toolbar-tab-on">
                        <a href="#/mass-message/sended">已发送</a>
                    </li>
                </ul>
            </div>
        </div>
        <div class="table table-message">
            <table class="table-message">
                <thead class="thead">
                    <tr>
                        <th>消息类型</th>
                        <th>发送对象</th>
                        <th>发送时间</th>
                        <th>发送状态</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody class="tbody color-gray">
                    <tr class="empty_item" ng-if="messageList && !messageList.length">
                        <td class="empty_tips" colspan="4">暂无消息</td>
                    </tr>
                    <tr ng-repeat="message in messageList" ng-if="messageList && messageList.length">
                        <td>
                            <img ng-src="{{message.thumb}}" class="l" alt="" height="85" width="85">
                            <div class="text l">
                                <p class="color-black" ng-cloak>{{message.title}}</p>
                                <p ng-cloak>{{message.description}}</p>
                            </div>
                        </td>
                        <td>全部</td>
                        <td ng-cloak>{{message.send_time | date:'yyyy-MM-dd hh:mm:ss'}}</td>
                        <td class="finish-td">
                            <div class="finish" ng-cloak>
                                {{["发送中","发送成功","已撤销"][message.status]}}<i class="arrow"></i>
                            </div>
                            <div class="pt pt-up" style="left: -50px; color:#333;">
                                <div class="cont" style="width: 200px; height: auto;">
                                    <div class="f14">
                                        <p ng-cloak>成功发送人数：{{message.sent_count}}</p>
                                        <p ng-cloak>失败人数：{{message.error_count}}人</p>
                                    </div>
                                </div>
                                <b class="out" style="top: -8px; left: 93px; right: auto; bottom: auto;"></b>
                                <b class="in" style="top: -7px; left: 94px; bottom: auto; right: auto;"></b>
                            </div>
                        </td>
                        <td>
                            <a href="javascript:;" ng-if="message.status !== 2" ng-click="undoMessage(message.id)">撤销</a>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div pagination ng-model="pagination"></div>
        </div>
    </div>
</div>
